/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package planocontas.classes;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQuery;

/**
 *
 * @author Gabi
 */
@Entity(name = "conta")
@NamedQuery(name="planoPorDescricao", query= "select pc from conta pc where pc.descricao like :descricaoPlanoContas order by idConta")
public class PlanoContas implements Serializable {
    @Id
    @GeneratedValue(strategy=GenerationType.AUTO)
    private int idConta;
    @Column
    private String descricao;
    @Column
    private String usuario;

    public int getIdConta() {
        return idConta;
    }

    public void setIdConta(int idConta) {
        this.idConta = idConta;
    }

    public String getDescricao() {
        return descricao;
    }

    public void setDescricao(String descricao) {
        this.descricao = descricao;
    }

    public String getUsuario() {
        return usuario;
    }

    public void setUsuario(String usuario) {
        this.usuario = usuario;
    }
}
